<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Temperature
 *
 * @author virtual
 */
class Temperature extends AbstractEntity {
    private $kidsId;
    private $timestamp; //date object
    private $degree;
    
    public function getKidsId() {  return $this->kidsId;    }
    //public function getTimestamp() {  return $this->timestamp;    }
    public function getDegree() {  return $this->degree;    }
    
    public function setDegree($degree) { $this->degree = $degree; }
    public function setTimestamp($timestamp) { $this->timestamp = $timestamp; }
    public function setKidsId($kidsId) { $this->kidsId = $kidsId; }
    
    public function setTime($time) {
        $this->timestamp = CalendarUtils::createDateFromTime($time);
    }
    public function getTimestampString() {
        return CalendarUtils::transformDateToTimestamp($this->timestamp);
    }
    public function getTime() {
        return CalendarUtils::transformDateToTime($this->timestamp);
    }
}

?>
